From 175d4ef03e7885fa1217bfc7d7697cbfc34f93f3 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 27 May 2020 15:45:38 +0100 Subject: [PATCH] Add missing documentation for GtkOverlayLayout We're missing the documentation for the constructor, and for the child properties. --- gtk/gtkoverlaylayout.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gtk/gtkoverlaylayout.c b/gtk/gtkoverlaylayout.c index 54ed06e573..8b71b91783 100644 --- a/gtk/gtkoverlaylayout.c +++ b/gtk/gtkoverlaylayout.c @@ -121,12 +121,23 @@ gtk_overlay_layout_child_class_init (GtkOverlayLayoutChildClass *klass) gobject_class->get_property = gtk_overlay_layout_child_get_property; gobject_class->finalize = gtk_overlay_layout_child_finalize; + /** + * GtkOverlayLayoutChild:measure: + * + * Whether the child size should contribute to the #GtkOverlayLayout's + * measurement. + */ child_props[PROP_MEASURE] = g_param_spec_boolean ("measure", P_("Measure"), P_("Include in size measurement"), FALSE, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY); + /** + * GtkOverlayLayoutChild:clip-overlay: + * + * Whether the child should be clipped to fit the parent's size. + */ child_props[PROP_CLIP_OVERLAY] = g_param_spec_boolean ("clip-overlay", P_("Clip Overlay"), @@ -443,6 +454,13 @@ gtk_overlay_layout_init (GtkOverlayLayout *self) { } +/** + * gtk_overlay_layout_new: + * + * Creates a new #GtkOverlayLayout instance. + * + * Returns: the newly created instance + */ GtkLayoutManager * gtk_overlay_layout_new (void) { -- 2.30.2